import {request} from '@/util/request.js'

export const save = (data) => {
    return request("api/{{table['alias']}}/", "POST", data)
}

export const update = (data) => {
    return request("api/{{table['alias']}}/", "PUT", data)
}

export const info = (id) => {
    return request("api/{{table['alias']}}/" + id, "GET", {})
}

export const del = (id) => {
    return request("api/{{table['alias']}}/" + id, "DELETE", {})
}

export const list = (data) => {
    return request("api/{{table['alias']}}/list", "POST", data)
}

export const page = (data) => {
    return request("api/{{table['alias']}}/page", "POST", data)
}